
/*   
 * File:jquery.list.navjs.js  
 * Date:2016-3-17  
 * Time:15:42:18  
 * Encoding:UTF-8  
 * Author:Expression KongAo is undefined on line 9, column 26 in Templates/Licenses/license-default.txt.  
 * Expression copyright is undefined on line 10, column 19 in Templates/Licenses/license-default.txt. 2016-3-17  
 * Description:  
 */  
function bannerShow(){
                                //alert(1);
                         if ($(".list_nav_img").hasClass("fldone")){
                            $(".list_nav_img").removeClass("fldone").addClass("fldone1");
                         }else{
                            $(".list_nav_img").removeClass("fldone1").addClass("fldone");
                         }  
                     };

$(document).ready(function(){
                bannerShow();
                setInterval(function() { 
                    bannerShow();
                },  20000);
                $("#list_main_country li").click(function(){
                    $(this).attr("class","");
                    $(this).addClass("list_main_country_mouse_hover");
                    $(this).children().attr("color","#ff9000");
                    $(this).siblings().removeClass("list_main_country_mouse_hover");
                    $(this).siblings().addClass("list_main_country_mouse");
                });
});

function fun(a){
      
      for(i=1;i<=6;i++){
      //获取div
      dd=document.getElementById("list_main_conntry_"+i);
      dd.style.display=(a==i)?"block":"none";
      };
      
};
function scrollTxt(){
    var controls={},
        values={},
        time1=500, /*播放动画的时间*/
        time2=3000, /*播放时间间隔*/
        si;
    controls.rollWrap=$("#roll-wrap");
    controls.rollWrapUl=controls.rollWrap.children();
    controls.rollWrapLIs=controls.rollWrapUl.children();
    values.liNums=controls.rollWrapLIs.length;
    values.liHeight=controls.rollWrapLIs.eq(0).height();
    values.ulHeight=controls.rollWrap.height();
    this.init=function(){
        autoPlay();
        pausePlay();
    }
    /*滚动*/
    function play(){
        controls.rollWrapUl.animate({"margin-top" : "-"+values.liHeight}, time1, function(){
            $(this).css("margin-top" , "0").children().eq(0).appendTo($(this));
        });
    }
    /*自动滚动*/
    function autoPlay(){
        /*如果所有li标签的高度和大于.roll-wrap的高度则滚动*/
        if(values.liHeight*values.liNums > values.ulHeight){
            si=setInterval(function(){
                play();
            },time2);
        }
    }
    /*鼠标经过ul时暂停滚动*/
    function pausePlay(){
        controls.rollWrapUl.on({
            "mouseenter":function(){
                clearInterval(si);
            },
            "mouseleave":function(){
                autoPlay();
            }
        });
    }
};
$(window).load(function(){
    $('.list_content_show_attention_content').liMarquee({
        direction: 'up',
        scrollamount: 10,
    });
});

